package com.terrace.core.utils.enums;

/**
 * 性别
 * @author jiangyg
 *
 */
public enum Sex {

	/**
	 * 未知
	 */
	Other("未知", 0),
	
	/**
	 * 男
	 */
	Male("男", 1),
	
	/**
	 * 女
	 */
	Female("女", 2);

	private String name;

	private Integer value;

	private Sex(String name, Integer value) {
		this.name = name;
		this.value = value;
	}

	public Integer getValue() {
		return value;
	}

	public String toString() {
		return this.name;
	}

}
